#!/usr/bin/python3
# _*_  coding:utf-8  _*_
'''
Created on 2019年5月22日
@author: Administrator
'''
from _ast import If
a = 0
b = 1
while b<10:
    #end 关键字可以使输出在一行上
    print(b , end = ',')
    a,b = b,a+b

flag = 3
if flag <1:
    print("小于1")
elif flag == 1:
    print("你好，这个指等于1")
else:
    print("大于1")

    
'''
循环
'''
c = 1
while (c <5):
    print("我是死循环")
    c+=1
else:
    print("跳出while循环")
    
'''
for 循环
'''
#loves = ["刘亦菲","刘诗诗","佟丽娅"]
loves = {"刘亦菲","刘诗诗","佟丽娅","凤姐"}
for love in loves:
    print("my love is "+love)
print(range(5))

for i in range(5):
    print(i)   
a = ['Google', 'Baidu', 'Runoob', 'Taobao', 'QQ']
for i in range(len(a)):
    print(i,a[i])

    
    
    